/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Objects;

/**
 *
 * @author tinvukhac
 */
public class Comment {
    
    private int commentId;
    private int imageId;
    private int userId;
    private String contents;
    private String time;
    
    private User user;
    private boolean isDislikeByCurrentUser;
    
    // Constructor
    public Comment(int commentId, int imageId, int userId, String contents, String time)
    {
        this.commentId = commentId;
        this.imageId = imageId;
        this.userId = userId;
        this.contents = contents;
        this.time = time;
    }

    /**
     * @return the commentId
     */
    public int getCommentId() {
        return commentId;
    }

    /**
     * @param commentId the commentId to set
     */
    public void setCommentId(int commentId) {
        this.commentId = commentId;
    }

    /**
     * @return the imageId
     */
    public int getImageId() {
        return imageId;
    }

    /**
     * @param imageId the imageId to set
     */
    public void setImageId(int imageId) {
        this.imageId = imageId;
    }

    /**
     * @return the userId
     */
    public int getUserId() {
        return userId;
    }

    /**
     * @param userId the userId to set
     */
    public void setUserId(int userId) {
        this.userId = userId;
    }

    /**
     * @return the contents
     */
    public String getContents() {
        return contents;
    }

    /**
     * @param contents the contents to set
     */
    public void setContents(String contents) {
        this.contents = contents;
    }

    /**
     * @return the time
     */
    public String getTime() {
        return time;
    }

    /**
     * @param time the time to set
     */
    public void setTime(String time) {
        this.time = time;
    }

    /**
     * @return the user
     */
    public User getUser() {
        return user;
    }

    /**
     * @param user the user to set
     */
    public void setUser(User user) {
        this.user = user;
    }

    /**
     * @return the isDislikeByCurrentUser
     */
    public boolean isIsDislikeByCurrentUser() {
        return isDislikeByCurrentUser;
    }

    /**
     * @param isDislikeByCurrentUser the isDislikeByCurrentUser to set
     */
    public void setIsDislikeByCurrentUser(boolean isDislikeByCurrentUser) {
        this.isDislikeByCurrentUser = isDislikeByCurrentUser;
    }
}
